The TextField Component > FTextField.getMaskingFunction()

 

FTextField.getMaskingFunction()

Availability

Flash Player 6.

Usage

myTextField_txf.getMaskingFunction ()

Parameters

none

Returns

Returns an object containing the name of the masking function, and the scope that the function will run within.

Description

Returns an object containing the name of the function that will be used to mask user input, and the scope that the function will run within. The two properties are maskingFnc, maskingScope.

maskingFnc

A string specifying the name of the function that is used to mask user input.

maskingScope

If defined, an Object whose scope the masking function is run within.

 

Example

The following code gets the masking function and traces its string reference and scope.

var fnc = myTextField_txf.getMaskingFunction();
trace(fnc.maskingFnc);
trace(fnc.maskingScope); 

See also

FTextField.setMaskingFunction()